package com.woniuxy.project115.kaer.tenant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuH
 * @since 2025年02月18日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("appointment_item")
public class AppointmentItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 节点id
     */
    @TableId(value = "item_id", type = IdType.AUTO)
    private Integer itemId;

    /**
     * 节点（项目）名称
     */
    @TableField("item_name")
    private String itemName;

    @TableField("material")
    private String material;

    @TableField("unit_price")
    private Double unitPrice;

    @TableField("number")
    private Integer number;

    @TableField("labor_cost")
    private Double laborCost;

    /**
     * 0：待处理 1：处理中 2：已完成
     */
    @TableField("state")
    private Integer state;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 开始时间
     */
    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime startTime;

    /**
     * 完成时间
     */
    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime endTime;

    /**
     * 负责人id
     */
    @TableField("employee_id")
    private Integer employeeId;

    /**
     * 负责人姓名
     */
    @TableField("employee_name")
    private String employeeName;

    /**
     * 服务id
     */
    @TableField("appointment_id")
    private Integer appointmentId;

    @TableField("service_order_num")
    private String serviceOrderNum;


}
